Elastic buffer in a memory sub-system for debugging information

ABSTRACT

A processing device in a memory system determines to send system state information associated with the memory device to a host system and identifies a subset of a plurality of event entries from a staging buffer based on one or more filtering factors, the plurality of event entries corresponding to events associated with the memory device. The processing device further sends the subset of the plurality of event entries as the system state information to the host system over a communication pipe having limited bandwidth.

RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.16/719,765, filed Dec. 18, 2019, the entire contents of which are herebyincorporated by reference herein.

TECHNICAL FIELD

Embodiments of the disclosure relate generally to memory sub-systems,and more specifically, relate to an elastic buffer in a memorysub-system for debugging memory device information.

BACKGROUND

A memory sub-system can include one or more memory devices that storedata. The memory devices can be, for example, non-volatile memorydevices and volatile memory devices. In general, a host system canutilize a memory sub-system to store data at the memory devices and toretrieve data from the memory devices.

BRIEF DESCRIPTION OF THE DRAWINGS

The present disclosure will be understood more fully from the detaileddescription given below and from the accompanying drawings of variousembodiments of the disclosure.

FIG. 1 illustrates an example computing system that includes a memorysub-system in accordance with some embodiments of the presentdisclosure.

FIG. 2 is a block diagram illustrating an elastic buffer component inaccordance with some embodiments of the present disclosure.

FIG. 3 is a block diagram illustrating operation of an elastic bufferfor debugging information sent from a memory device to a host system inaccordance with some embodiments of the present disclosure.

FIG. 4 is a flow diagram of an example method of associating metadatatags with event entries in accordance with some embodiments of thepresent disclosure.

FIG. 5 is a flow diagram of an example method of selectively sendingevent entries from an elastic buffer to a host system in accordance withsome embodiments of the present disclosure.

FIG. 6 is a block diagram of an example computer system in whichembodiments of the present disclosure may operate.

DETAILED DESCRIPTION

Aspects of the present disclosure are directed to selectively sendingevent entries, including debugging information, from an elastic bufferin a memory sub-system to an associated host system over a communicationpipe having limited bandwidth. A memory sub-system can be a storagedevice, a memory module, or a hybrid of a storage device and memorymodule. Examples of storage devices and memory modules are describedbelow in conjunction with FIG. 1 . In general, a host system can utilizea memory sub-system that includes one or more components, such as memorydevices that store data. The host system can provide data to be storedat the memory sub-system and can request data to be retrieved from thememory sub-system.

Debugging is a methodical process of finding and reducing the number ofdefects (i.e., “bugs”) in an electronic device, such as a memorysub-system. Various debug techniques can be used to detect anomalies,assess their impact, and schedule hardware changes, firmware upgrades orfull updates to a system. The goals of debugging include identifying andfixing bugs in the system (e.g., logical or synchronization problems inthe firmware, or a design error in the hardware) and collecting systemstate information, such as information about the operation of the memorysub-system, that may then be used to analyze the memory sub-system tofind ways to boost its performance or to optimize other importantcharacteristics. One example of system state information can includeevent data generated in the memory sub-system. An event, as used herein,generally refers to a detectable action performed by hardware, software,firmware, or a combination of any of the above in the memory sub-system.Some examples of an event include a memory sub-system controller sendingand/or receiving data or accessing a memory location of a memory device,a warning related to some reliability statistic (e.g., raw bit errorrate (RBER)) of a memory device, an error experienced by the memorysub-system controller in reading data from or writing data to a memorydevice, etc.

In one implementation, a corresponding event entry can be generated andlogged in response to the occurrence of each event. Since the range ofactions that constitute an event is so broad, the size of thecorresponding event entries can also vary greatly. For example, someevents can have corresponding event entries that are relatively large insize, while other events can have corresponding event entries that aremuch smaller. Furthermore, the number and criticality of event entriescorresponding to different types of events can also vary. Some eventscan occur with great frequency, but might be relatively unimportant,while other events occur very infrequently, but are very important. Forexample, hardware transactions occurring at an interval of one orseveral microseconds will have over 1000 occurrences before any event isrecorded at a millisecond resolution. For this type of hardwaretransaction, logging every separate occurrence may not be critical giventhe extremely high number of repeated event entries.

In many conventional systems, debugging operations or other analyses ofthe memory sub-system are performed on a separate computing device, suchas a host computing system, communicably coupled to the memorysub-system through a communication pipe. The communication pipe can beimplemented using any one of various technologies, and can include, forexample, a universal asynchronous receiver-transmitter (UART) bus, aninter-integrated circuit (I2C) bus, a system management bus (SMBus), aNexus bus, a peripheral component interconnect express (PCIe) bus, orsome other type of communication mechanism. Depending on the type ofcommunication pipe used, the available bandwidth can vary, and only afixed amount of system state information can be transferred over thecommunication pipe to the host system in a given amount of time. Thus,certain communication pipes can be considered to have limited bandwidthsince they may not be able to adequately transfer all of the evententries generated in the memory sub-system. For example, a communicationpipe having limited bandwidth may have a bandwidth that is below acertain threshold, or that is below a bandwidth level required totransfer a certain amount of data (e.g., the total size of all availableevent entries in the memory sub-system) within a fixed amount of time.When conventional systems attempt to transfer all of the event entriesto the host system for debugging, certain event entries are dropped ordelayed, potentially including critical or important event entries. Inaddition, other traffic in the communication pipe, such as host commandsor memory sub-system data, can be delayed or dropped in favor of thesystem state information being transferred.

Aspects of the present disclosure address the above and otherdeficiencies by selectively sending event entries from an elastic bufferin a memory sub-system to an associated host system over a communicationpipe having limited bandwidth. In one embodiment, in response toreceiving a request for system state information from the host system orin response to the occurrence of a periodic interval, the memorysubsystem can determine to send the system state information to the hostsystem. As described herein, a number of event entries corresponding toevents associated with the memory sub-system can be stored in a stagingbuffer. Each event entry can have one or more associated metadata tagsthat indicate, for example, a severity of the event entry, a prioritylevel of the event entry, an amount of bandwidth required to transmitthe event entry to the host system, and/or other information. In oneembodiment, the memory sub-system can identify a subset of the evententries from the staging buffer based on one or more filtering factors.For example, the memory sub-system can compare the filtering factors tothe metadata tags identify those entries having corresponding metadatatags that match the one or more filtering factors. These filteringfactors can include, for example, an indication of a requested prioritylevel, a privilege level of the host system, an amount of bandwidthavailable in the communication pipe, and/or other factors. Uponidentifying an appropriate subset of the event entries in the stagingbuffer, rather than sending the entire contents of the staging buffer,the memory sub-system can selectively send the subset of event entriesas the system state information to the host system over a communicationpipe, such as a communication pipe having limited bandwidth. Thefiltering factors can be designed to result in a subset of event entrieshaving a size compatible with the bandwidth of the communication pipe.Thus, the staging buffer can be considered to be “elastic” since theeffective size is dynamically changed through the selection of thesubset of event entries. Those remaining event entries not selected aspart of the subset can remain in the staging buffer or be discarded,depending on the implementation.

By reducing the size of system state information transferred to the hostsystem for the identified subset of event entries, the memory sub-systemavoids overwhelming the communication pipe having limited bandwidthbetween the memory sub-system and the host system. Accordingly, evententries corresponding to events in the memory sub-system are not droppedor delayed, ensuring that critical event entries are received at thehost system in a timely manner. Debugging operations and other analysisof the memory sub-system are thereby improved, allowing for adjustmentsto be made to improve performance of the memory sub-system. Thus, theresulting output is highly effective in depicting a proper flow of eventinformation based on the bandwidth of the communication pipe.Furthermore, the limited bandwidth of the communication pipe ispreserved allowing other traffic, including host system commands, memorysub-system data, etc. to be transferred without unnecessary delay.

FIG. 1 illustrates an example computing system 100 that includes amemory sub-system 110 in accordance with some embodiments of the presentdisclosure. The memory sub-system 110 can include media, such as one ormore volatile memory devices (e.g., memory device 140), one or morenon-volatile memory devices (e.g., memory device 130), or a combinationof such.

A memory sub-system 110 can be a storage device, a memory module, or ahybrid of a storage device and memory module. Examples of a storagedevice include a solid-state drive (SSD), a flash drive, a universalserial bus (USB) flash drive, an embedded Multi-Media Controller (eMMC)drive, a Universal Flash Storage (UFS) drive, a secure digital (SD) anda hard disk drive (HDD). Examples of memory modules include a dualin-line memory module (DIMM), a small outline DIMM (SO-DIMM), andvarious types of non-volatile dual in-line memory module (NVDIMM).

The computing system 100 can be a computing device such as a desktopcomputer, laptop computer, network server, mobile device, a vehicle(e.g., airplane, drone, train, automobile, or other conveyance),Internet of Things (IoT) enabled device, embedded computer (e.g., oneincluded in a vehicle, industrial equipment, or a networked commercialdevice), or such computing device that includes memory and a processingdevice.

The computing system 100 can include a host system 120 that is coupledto one or more memory sub-systems 110. In some embodiments, the hostsystem 120 is coupled to different types of memory sub-system 110. FIG.1 illustrates one example of a host system 120 coupled to one memorysub-system 110. As used herein, “coupled to” or “coupled with” generallyrefers to a connection between components, which can be an indirectcommunicative connection or direct communicative connection (e.g.,without intervening components), whether wired or wireless, includingconnections such as electrical, optical, magnetic, etc.

The host system 120 can include a processor chipset and a software stackexecuted by the processor chipset. The processor chipset can include oneor more cores, one or more caches, a memory controller (e.g., NVDIMMcontroller), and a storage protocol controller (e.g., PCIe controller,SATA controller). The host system 120 uses the memory sub-system 110,for example, to write data to the memory sub-system 110 and read datafrom the memory sub-system 110.

The host system 120 can be coupled to the memory sub-system 110 via aphysical host interface. Examples of a physical host interface include,but are not limited to, a serial advanced technology attachment (SATA)interface, a peripheral component interconnect express (PCIe) interface,universal serial bus (USB) interface, Fibre Channel, Serial AttachedSCSI (SAS), a double data rate (DDR) memory bus, Small Computer SystemInterface (SCSI), a dual in-line memory module (DIMM) interface (e.g.,DIMM socket interface that supports Double Data Rate (DDR)), etc. Thephysical host interface can be used to transmit data between the hostsystem 120 and the memory sub-system 110. The host system 120 canfurther utilize an NVM Express (NVMe) interface to access components(e.g., memory devices 130) when the memory sub-system 110 is coupledwith the host system 120 by the PCIe interface. The physical hostinterface can provide an interface for passing control, address, data,and other signals between the memory sub-system 110 and the host system120. FIG. 1 illustrates a memory sub-system 110 as an example. Ingeneral, the host system 120 can access multiple memory sub-systems viaa same communication connection, multiple separate communicationconnections, and/or a combination of communication connections.

The memory devices 130,140 can include any combination of the differenttypes of non-volatile memory devices and/or volatile memory devices. Thevolatile memory devices (e.g., memory device 140) can be, but are notlimited to, random access memory (RAM), such as dynamic random accessmemory (DRAM) and synchronous dynamic random access memory (SDRAM).

Some examples of non-volatile memory devices (e.g., memory device 130)include negative-and (NAND) type flash memory and write-in-place memory,such as a three-dimensional cross-point (“3D cross-point”) memorydevice, which is a cross-point array of non-volatile memory cells. Across-point array of non-volatile memory can perform bit storage basedon a change of bulk resistance, in conjunction with a stackablecross-gridded data access array. Additionally, in contrast to manyflash-based memories, cross-point non-volatile memory can perform awrite in-place operation, where a non-volatile memory cell can beprogrammed without the non-volatile memory cell being previously erased.NAND type flash memory includes, for example, two-dimensional NAND (2DNAND) and three-dimensional NAND (3D NAND).

Each of the memory devices 130 can include one or more arrays of memorycells. One type of memory cell, for example, single level cells (SLC)can store one bit per cell. Other types of memory cells, such asmulti-level cells (MLCs), triple level cells (TLCs), and quad-levelcells (QLCs), can store multiple bits per cell. In some embodiments,each of the memory devices 130 can include one or more arrays of memorycells such as SLCs, MLCs, TLCs, QLCs, or any combination of such. Insome embodiments, a particular memory device can include an SLC portion,and an MLC portion, a TLC portion, or a QLC portion of memory cells. Thememory cells of the memory devices 130 can be grouped as pages that canrefer to a logical unit of the memory device used to store data. Withsome types of memory (e.g., NAND), pages can be grouped to form blocks.

Although non-volatile memory components such as 3D cross-point array ofnon-volatile memory cells and NAND type flash memory (e.g., 2D NAND, 3DNAND) are described, the memory device 130 can be based on any othertype of non-volatile memory, such as read-only memory (ROM), phasechange memory (PCM), self-selecting memory, other chalcogenide basedmemories, ferroelectric transistor random-access memory (FeTRAM),ferroelectric random access memory (FeRAM), magneto random access memory(MRAM), Spin Transfer Torque (STT)-MRAM, conductive bridging RAM(CBRAM), resistive random access memory (RRAM), oxide based RRAM(OxRAM), negative-or (NOR) flash memory, and electrically erasableprogrammable read-only memory (EEPROM).

A memory sub-system controller 115 (or controller 115 for simplicity)can communicate with the memory devices 130 to perform operations suchas reading data, writing data, or erasing data at the memory devices 130and other such operations. The memory sub-system controller 115 caninclude hardware such as one or more integrated circuits and/or discretecomponents, a buffer memory, or a combination thereof. The hardware caninclude a digital circuitry with dedicated (i.e., hard-coded) logic toperform the operations described herein. The memory sub-systemcontroller 115 can be a microcontroller, special purpose logic circuitry(e.g., a field programmable gate array (FPGA), an application specificintegrated circuit (ASIC), etc.), or other suitable processor.

The memory sub-system controller 115 can include a processor 117 (e.g.,processing device) configured to execute instructions stored in a localmemory 119. In the illustrated example, the local memory 119 of thememory sub-system controller 115 includes an embedded memory configuredto store instructions for performing various processes, operations,logic flows, and routines that control operation of the memorysub-system 110, including handling communications between the memorysub-system 110 and the host system 120.

In some embodiments, the local memory 119 can include memory registersstoring memory pointers, fetched data, etc. The local memory 119 canalso include read-only memory (ROM) for storing micro-code. While theexample memory sub-system 110 in FIG. 1 has been illustrated asincluding the memory sub-system controller 115, in another embodiment ofthe present disclosure, a memory sub-system 110 does not include amemory sub-system controller 115, and can instead rely upon externalcontrol (e.g., provided by an external host, or by a processor orcontroller separate from the memory sub-system).

In general, the memory sub-system controller 115 can receive commands oroperations from the host system 120 and can convert the commands oroperations into instructions or appropriate commands to achieve thedesired access to the memory devices 130. The memory sub-systemcontroller 115 can be responsible for other operations such as wearleveling operations, garbage collection operations, error detection anderror-correcting code (ECC) operations, encryption operations, cachingoperations, and address translations between a logical address (e.g.,logical block address (LBA), namespace) and a physical address (e.g.,physical block address) that are associated with the memory devices 130.The memory sub-system controller 115 can further include host interfacecircuitry to communicate with the host system 120 via the physical hostinterface. The host interface circuitry can convert the commandsreceived from the host system into command instructions to access thememory devices 130 as well as convert responses associated with thememory devices 130 into information for the host system 120.

The memory sub-system 110 can also include additional circuitry orcomponents that are not illustrated. In some embodiments, the memorysub-system 110 can include a cache or buffer (e.g., DRAM) and addresscircuitry (e.g., a row decoder and a column decoder) that can receive anaddress from the memory sub-system controller 115 and decode the addressto access the memory devices 130.

In some embodiments, the memory devices 130 include local mediacontrollers 135 that operate in conjunction with memory sub-systemcontroller 115 to execute operations on one or more memory cells of thememory devices 130. An external controller (e.g., memory sub-systemcontroller 115) can externally manage the memory device 130 (e.g.,perform media management operations on the memory device 130). In someembodiments, a memory device 130 is a managed memory device, which is araw memory device combined with a local controller (e.g., localcontroller 135) for media management within the same memory devicepackage. An example of a managed memory device is a managed NAND (MNAND)device.

In one embodiment, the memory sub-system 110 includes elastic buffercomponent 113 that can selectively send event entries from an elasticbuffer in memory sub-system 110 to host system 110 over a communicationpipe having limited bandwidth. In one embodiment, in response toreceiving a request for system state information from host system 120 orin response to the occurrence of a periodic interval, elastic buffercomponent 113 can determine to send the system state information to hostsystem 120. In one embodiment, the elastic buffer can be implemented inlocal memory 119 or in one of memory devices 130 or 140, and can store anumber of event entries corresponding to events associated with memorysub-system 110. Each event entry can have one or more associatedmetadata tags that indicate, for example, a severity of the event entry,a priority level of the event entry, an amount of bandwidth required totransmit the event entry to the host system, and/or other information.In one embodiment, elastic buffer component 113 can identify a subset ofthe event entries from the staging buffer based on one or more filteringfactors. For example, elastic buffer component 113 can compare thefiltering factors to the metadata tags identify those entries for whichthe corresponding metadata tags match the one or more filtering factors.These filtering factors can include, for example, an indication of arequested priority level, a privilege level of the host system, anamount of bandwidth available in the communication pipe, and/or otherfactors. Upon identifying an appropriate subset of the event entries inthe buffer, rather than sending the entire contents of the buffer,elastic buffer component 113 can selectively send the subset of evententries as the system state information to host system 120 over thecommunication pipe. The filtering factors can be designed to result in asubset of event entries having a size compatible with the bandwidth ofthe communication pipe. Elastic buffer component 113 can maintain thoseremaining event entries not selected as part of the subset in theelastic buffer or can discard those remaining event entries, dependingon the implementation. Further details with regards to the operations ofthe elastic buffer component 113 are described below.

FIG. 2 is a block diagram illustrating an elastic buffer component inaccordance with some embodiments of the present disclosure. In oneembodiment, elastic buffer component 113 includes metadata tag manager210, filtering factor manager 220, and arbiter 230. This arrangement ofmodules and components can be a logical separation, and in otherembodiments, these modules or other components can be combined togetheror separated in further components, according to a particularimplementation. In one embodiment, data store 240 is connected toelastic buffer component 113 and metadata tags 242, filtering factors244, staging buffer 246, output buffer 248. In one implementation, onephysical node (e.g., memory sub-system 110) can include both elasticbuffer component 113 and data store 240. In another embodiment, datastore 240 can be external to the physical node and can be connected overa network or other connection. In other implementations, the physicalnode and elastic buffer component 113 can include different and/oradditional components and applications which are not shown to simplifythe description. Data store 240 can be embodied on one or more massstorage devices which can include, for example, flash memory, magneticor optical disks, or tape drives; read-only memory (ROM); random-accessmemory (RAM); erasable programmable memory (e.g., EPROM and EEPROM);flash memory; or any other type of storage medium. For example, datastore 240 can be one representation of local memory 119, or can be partof memory device 130 or memory device 140, as illustrated in FIG. 1 .

In one embodiment, metadata tag manager 210 controls the assignment ofmetadata tags 242 to event entries. Either upon creation of the evententries and prior to storing those event entries in staging buffer 246,or upon storing the event entries in staging buffer 246, metadata tagmanager 210 can assign one or more of metadata tags 242 to each evententry. The metadata tags 242 define a context of the corresponding evententry and can ultimately be used in determining whether thecorresponding event entry should be included in the subset of evententries sent to host system 120 as system state information. Forexample, the metadata tags 242 can include an indication of a severityof the corresponding event entry, a priority level of the correspondingevent entry, an amount of bandwidth required to transmit thecorresponding event entry to the host system 120, or other information.The severity of an event entry can include, for example, whether theevent entry is merely informative, includes a warning, is indicative ofan error having occurred in memory sub-system 110, or is debugginginformation. The priority level of an event entry can include any numberof predefined levels, such as low, medium, high, etc. Certain events canbe automatically assigned a certain priority level, or the prioritylevel of an event can be dynamically determined by consideration of anumber of factors. The amount of bandwidth required to transmit an evententry can be tied to a size of the event entry, with larger evententries requiring a higher amount of bandwidth. The amount of bandwidthcan also be expressed as any number of predefined levels, such as lowmedium high, ultra-high, etc.

In one embodiment, filtering factor manager 220 controls the updatingand management of filtering factors 244, based on memory sub-systemconfiguration and on feedback received from host system 120. In oneembodiment, the filtering factors 244 are defined based on the type ofcommunication pipe between memory sub-system 110 and host system 120,the configuration of host system 120 making the request for system stateinformation, and optionally on specific feedback provided by host system120 after receiving prior system state information. For example, thefiltering factors 244 can include an indication of a requested prioritylevel, a privilege level of the host system 120, an amount of bandwidthavailable in the communication pipe, or other factors. The requestedpriority level of system state information can be specified by hostsystem 120, or can be used by arbiter 230 as a weighting factor whenselecting a subset of event entries. For example, the host system 120can request that only high priority event entries be transferred, orthat low priority event entries not be transferred. In addition, arbiter230 can prioritize high priority event entries over medium and lowpriority event entries. The privilege level of the host system 120 canbe any of a number of discrete levels, such as, P0, P1, P2, . . . Pn.Each host system can be assigned a corresponding privilege level whichdictates the type of event entries which the host system is entitled toreceive. For example, a host with privilege level P0 can be entitled toreceive all possible types of event entries, while a host with privilegelevel P1 can be entitled to receive only event entries classified aswarnings or errors. The amount of bandwidth available in thecommunication pipe can be tied to the type of communication pipe used.For example, a UART bus, an I2C bus, an SMBus, a Nexus bus, and a PCIebus, all have different amounts of bandwidth. The amount of bandwidthcan also be expressed as any number of predefined levels, such as lowmedium high, ultra-high, etc.

In one embodiment, arbiter 230 identifies a subset of event entrieshaving associated metadata tags 242 from staging buffer 246 based on oneor more of filtering factors 244. For example, arbiter 230 can comparethe filtering factors 244 to the metadata tags 242 associated with eachof the event entries and identify those for which the correspondingmetadata tags match the filtering factors 244. Thus, in one embodiment,the subset includes less than all of the event entries available instaging buffer 246. In another embodiment, the subset includes all ofthe event entries in staging buffer 246, so long as all of those evententries satisfy the filtering factors 244. In one embodiment, arbiter230 identifies the subset of event entries and sends them directly tohost system 120 from staging buffer 246 via the communication pipe. Inanother embodiment, arbiter 230 copies the subset of event entries fromstaging buffer 246 to output buffer 248, and the contents of outputbuffer 248 is transferred to host system 120 via the communication pipe.Arbiter 230 can maintain those remaining event entries not selected aspart of the subset in staging buffer 246 or can discard those remainingevent entries, depending on the implementation.

FIG. 3 is a block diagram illustrating operation of an elastic bufferfor debugging information sent from a memory device to a host system inaccordance with some embodiments of the present disclosure. Depending onthe embodiment, the elastic buffer can include either staging buffer 246or the combination of staging buffer and output buffer 248. As describedherein, one or more filtering factors are used to select a subset ofevent entries from staging buffer 246 having a size compatible with thebandwidth of the communication pipe 322 between memory sub-system 110and host system 120. The subset of event entries can be transferreddirectly from staging buffer 246 to host system 120 or first moved to anoutput buffer 248 and then transferred to host system 120. Since lessthan the entire contents of staging buffer 246 are transferred, however,the staging buffer 246 can be considered to be “elastic” as theeffective size is dynamically changed through the selection of thesubset of event entries. Those remaining event entries not selected aspart of the subset can remain in the staging buffer 246 or be discarded,depending on the implementation.

In one embodiment, new event entries are received from event source 310.Event source 310 can be any component within memory sub-system 110, suchas memory sub-system controller 115, memory device 130, memory device140, or some other component. Each event entry can correspond to anevent having occurred in memory sub-system 110. Each event refers to adetectable action performed by hardware, software, firmware, or acombination of any of the above in memory sub-system 110. Some examplesof an event include memory sub-system controller 115 sending and/orreceiving data or accessing a memory location of a memory device 130, awarning related to some reliability statistic (e.g., raw bit error rate(RBER)) of a memory device 130, an error experienced by the memorysub-system controller 115 in reading data from or writing data to amemory device 130, etc. Since the range of actions that constitute anevent is so broad, the size of the corresponding event entries can alsovary greatly. For example, some events can have corresponding evententries that are relatively large in size, while other events can havecorresponding event entries that are much smaller. Furthermore, thenumber and criticality of event entries corresponding to different typesof can also vary. Some events can occur with great frequency, but mightbe relatively unimportant, while other events occur very infrequently,but are very important.

In one embodiment, metadata tag manager 210 can assign one or more ofmetadata tags 242 to each event entry prior to or upon storage of theevent entry in staging buffer 246. The metadata tags 242 define acontext of the corresponding event entry and can ultimately be used indetermining whether the corresponding event entry should be included inthe subset of event entries sent to host system 120 as system stateinformation. For example, the metadata tags 242 can include anindication of a severity of the corresponding event entry, a prioritylevel of the corresponding event entry, an amount of bandwidth requiredto transmit the corresponding event entry to the host system 120, orother information.

In one embodiment, arbiter 230 identifies a subset of event entrieshaving associated metadata tags 242 from staging buffer 246 based on oneor more of filtering factors 244. For example, arbiter 230 can comparethe filtering factors 244 to the metadata tags 242 associated with eachof the event entries and identify those for which the correspondingmetadata tags match the filtering factors 244. For example, thefiltering factors 244 can include an indication of a requested prioritylevel, a privilege level of the host system 120, an amount of bandwidthavailable in the communication pipe, or other factors. In oneembodiment, arbiter 230 identifies the subset of event entries and sendsthem directly to host system 120 from staging buffer 246 viacommunication pipe 322. In another embodiment, arbiter 230 copies thesubset of event entries from staging buffer 246 to output buffer 248,and the contents of output buffer 248 is transferred to host system 120via the communication pipe 322. Arbiter 230 can maintain those remainingevent entries not selected as part of the subset in staging buffer 246or can discard those remaining event entries, depending on theimplementation.

In one embodiment, filtering factor manager 220 controls the updatingand management of filtering factors 244, based on feedback data 324received from host system 120. In one embodiment, the filtering factors244 are defined based on the type of communication pipe between memorysub-system 110 and host system 120, the configuration of host system 120making the request for system state information, and optionally onspecific feedback data 324 provided by host system 120 after receivingprior system state information. For example, the feedback data 324 caninclude a change to the requested priority level of event entriesdesired by host system 120, a change in the privilege level of hostsystem 120, a change in the bandwidth available in communication pipe322 coupled to host system 120, or other information that can impact thefiltering factors 244.

FIG. 4 is a flow diagram of an example method of associating metadatatags with event entries in accordance with some embodiments of thepresent disclosure. The method 400 can be performed by processing logicthat can include hardware (e.g., processing device, circuitry, dedicatedlogic, programmable logic, microcode, hardware of a device, integratedcircuit, etc.), software (e.g., instructions run or executed on aprocessing device), or a combination thereof. In some embodiments, themethod 400 is performed by elastic buffer component 113 of FIG. 1 .Although shown in a particular sequence or order, unless otherwisespecified, the order of the processes can be modified. Thus, theillustrated embodiments should be understood only as examples, and theillustrated processes can be performed in a different order, and someprocesses can be performed in parallel. Additionally, one or moreprocesses can be omitted in various embodiments. Thus, not all processesare required in every embodiment. Other process flows are possible.

At operation 410, the processing logic detects occurrence of an event inmemory sub-system 110. Each event refers to a detectable actionperformed by hardware, software, firmware, or a combination of any ofthe above in memory sub-system 110. Some examples of an event includememory sub-system controller 115 sending and/or receiving data oraccessing a memory location of a memory device 130, a warning related tosome reliability statistic (e.g., raw bit error rate (RBER)) of a memorydevice 130, an error experienced by the memory sub-system controller 115in reading data from or writing data to a memory device 130, etc. In oneembodiment, elastic buffer component 113 detects the occurrence of theevent. In another embodiment, some other monitoring component in memorysub-system 110 detects the occurrence of the event.

At operation 420, the processing logic creates an event entrycorresponding to the detected event. In response to detection of theoccurrence of the event, either elastic buffer component 113 or someother component in memory sub-system 110 can create the correspondingevent entry. The event entry marks the occurrence of the event bystoring details associated with the event, such as what action served asthe event, which components of memory sub-system 110 were involved inthe event, when the event occurred, etc.

At operation 430, the processing logic associates one or more metadatatags with the event entry. In one embodiment, metadata tag manager 210can assign one or more of metadata tags 242 to the event entry. Themetadata tags 242 define a context of the event entry and can ultimatelybe used in determining whether the event entry should be included in thesubset of event entries sent to host system 120 as system stateinformation. For example, the metadata tags 242 can include anindication of a severity of the event entry, a priority level of theevent entry, an amount of bandwidth required to transmit the event entryto the host system 120, or other information.

At operation 440, the processing logic stores the event entry having theassociated metadata tags 242 in a staging buffer 246 with other evententries. In one embodiment, the staging buffer 246 includes all evententries generated in memory sub-system 110 since system stateinformation was last sent to host system 120. In one embodiment, only asubset of the event entries in staging buffer 246 are to be selected,based on one or more filtering factors 244, for transfer to host system120 over a communication pipe 322 having limited bandwidth. In oneembodiment, arbiter 230 can compare the filtering factors 244 to themetadata tags 242 associated with each of the event entries and identifythose for which the corresponding metadata tags match the filteringfactors 244. For example, the filtering factors 244 can include anindication of a requested priority level, a privilege level of the hostsystem 120, an amount of bandwidth available in the communication pipe,or other factors. Arbiter 230 can maintain those remaining event entriesnot selected as part of the subset in staging buffer 246 or can discardthose remaining event entries, depending on the implementation.

FIG. 5 is a flow diagram of an example method of selectively sendingevent entries in an elastic buffer to a host system in accordance withsome embodiments of the present disclosure. The method 500 can beperformed by processing logic that can include hardware (e.g.,processing device, circuitry, dedicated logic, programmable logic,microcode, hardware of a device, integrated circuit, etc.), software(e.g., instructions run or executed on a processing device), or acombination thereof. In some embodiments, the method 500 is performed byelastic buffer component 113 of FIG. 1 . Although shown in a particularsequence or order, unless otherwise specified, the order of theprocesses can be modified. Thus, the illustrated embodiments should beunderstood only as examples, and the illustrated processes can beperformed in a different order, and some processes can be performed inparallel. Additionally, one or more processes can be omitted in variousembodiments. Thus, not all processes are required in every embodiment.Other process flows are possible.

At operation 510, the processing logic determines to send system stateinformation associated with memory sub-system 110 and/or memory device130 to host system 120. In one embodiment, elastic buffer component 113receives a request for the system state information from host system 120and determines to send the system state information in response. Inanother embodiment, elastic buffer component 113 determines theoccurrence of a periodic interval upon which the system stateinformation is to be sent to host system 120. For example, elasticbuffer component 133 can be configured to send the system stateinformation to host system 120, every hour, every day, every week, etc.

At operation 520, the processing logic identifies a subset of evententries from staging buffer 246 based on one or more filtering factors244. In one embodiment, arbiter 230 can compare the filtering factors244 to metadata tags 242 associated with each of the event entries andidentify those for which the corresponding metadata tags match thefiltering factors 244. For example, the filtering factors 244 caninclude an indication of a requested priority level, a privilege levelof the host system 120, an amount of bandwidth available in thecommunication pipe, or other factors.

At operation 530, the processing logic sends the subset of event entriesas system state information to host system 120 over a communication pipe322 having limited bandwidth. In one embodiment, arbiter 230 identifiesthe subset of event entries and sends them directly to host system 120from staging buffer 246 via communication pipe 322. In anotherembodiment, arbiter 230 copies the subset of event entries from stagingbuffer 246 to output buffer 248, and the contents of output buffer 248is transferred to host system 120 via the communication pipe 322. Atoperation 540, the processing logic maintains those remaining evententries not selected as part of the subset in staging buffer 246. Inanother embodiment, the processing logic can discard those remainingevent entries not sent to host system 120.

At operation 550, the processing logic receives feedback data from hostsystem 120 representing an update to the one or more filtering factors244. In one embodiment, the filtering factors 244 are defined based onthe type of communication pipe between memory sub-system 110 and hostsystem 120, the configuration of host system 120 making the request forsystem state information, and optionally on specific feedback data 324provided by host system 120 after receiving prior system stateinformation. For example, the feedback data 324 can include a change tothe requested priority level of event entries desired by host system120, a change in the privilege level of host system 120, a change in thebandwidth available in communication pipe 322 coupled to host system120, or other information that can impact the filtering factors 244. Atoperation 560, the processing logic applies the update to the filteringfactors 560 so that the updated filtering factors can be used by arbiter230 in the future when identifying subsequent subsets of event entriesto send to host system 120.

FIG. 6 illustrates an example machine of a computer system 600 withinwhich a set of instructions, for causing the machine to perform any oneor more of the methodologies discussed herein, can be executed. In someembodiments, the computer system 600 can correspond to a host system(e.g., the host system 120 of FIG. 1 ) that includes, is coupled to, orutilizes a memory sub-system (e.g., the memory sub-system 110 of FIG. 1) or can be used to perform the operations of a controller (e.g., toexecute an operating system to perform operations corresponding to theelastic buffer component 113 of FIG. 1 ). In alternative embodiments,the machine can be connected (e.g., networked) to other machines in aLAN, an intranet, an extranet, and/or the Internet. The machine canoperate in the capacity of a server or a client machine in client-servernetwork environment, as a peer machine in a peer-to-peer (ordistributed) network environment, or as a server or a client machine ina cloud computing infrastructure or environment.

The machine can be a personal computer (PC), a tablet PC, a set-top box(STB), a Personal Digital Assistant (PDA), a cellular telephone, a webappliance, a server, a network router, a switch or bridge, or anymachine capable of executing a set of instructions (sequential orotherwise) that specify actions to be taken by that machine. Further,while a single machine is illustrated, the term “machine” shall also betaken to include any collection of machines that individually or jointlyexecute a set (or multiple sets) of instructions to perform any one ormore of the methodologies discussed herein.

The example computer system 600 includes a processing device 602, a mainmemory 604 (e.g., read-only memory (ROM), flash memory, dynamic randomaccess memory (DRAM) such as synchronous DRAM (SDRAM) or Rambus DRAM(RDRAM), etc.), a static memory 606 (e.g., flash memory, static randomaccess memory (SRAM), etc.), and a data storage system 618, whichcommunicate with each other via a bus 630.

Processing device 602 represents one or more general-purpose processingdevices such as a microprocessor, a central processing unit, or thelike. More particularly, the processing device can be a complexinstruction set computing (CISC) microprocessor, reduced instruction setcomputing (RISC) microprocessor, very long instruction word (VLIW)microprocessor, or a processor implementing other instruction sets, orprocessors implementing a combination of instruction sets. Processingdevice 602 can also be one or more special-purpose processing devicessuch as an application specific integrated circuit (ASIC), a fieldprogrammable gate array (FPGA), a digital signal processor (DSP),network processor, or the like. The processing device 602 is configuredto execute instructions 626 for performing the operations and stepsdiscussed herein. The computer system 600 can further include a networkinterface device 608 to communicate over the network 620.

The data storage system 618 can include a machine-readable storagemedium 624 (also known as a computer-readable medium) on which is storedone or more sets of instructions 626 or software embodying any one ormore of the methodologies or functions described herein. Theinstructions 626 can also reside, completely or at least partially,within the main memory 604 and/or within the processing device 602during execution thereof by the computer system 600, the main memory 604and the processing device 602 also constituting machine-readable storagemedia. The machine-readable storage medium 624, data storage system 618,and/or main memory 604 can correspond to the memory sub-system 110 ofFIG. 1 .

In one embodiment, the instructions 626 include instructions toimplement functionality corresponding to the elastic buffer component113 of FIG. 1 ). While the machine-readable storage medium 624 is shownin an example embodiment to be a single medium, the term“machine-readable storage medium” should be taken to include a singlemedium or multiple media that store the one or more sets ofinstructions. The term “machine-readable storage medium” shall also betaken to include any medium that is capable of storing or encoding a setof instructions for execution by the machine and that cause the machineto perform any one or more of the methodologies of the presentdisclosure. The term “machine-readable storage medium” shall accordinglybe taken to include, but not be limited to, solid-state memories,optical media, and magnetic media.

Some portions of the preceding detailed descriptions have been presentedin terms of algorithms and symbolic representations of operations ondata bits within a computer memory. These algorithmic descriptions andrepresentations are the ways used by those skilled in the dataprocessing arts to most effectively convey the substance of their workto others skilled in the art. An algorithm is here, and generally,conceived to be a self-consistent sequence of operations leading to adesired result. The operations are those requiring physicalmanipulations of physical quantities. Usually, though not necessarily,these quantities take the form of electrical or magnetic signals capableof being stored, combined, compared, and otherwise manipulated. It hasproven convenient at times, principally for reasons of common usage, torefer to these signals as bits, values, elements, symbols, characters,terms, numbers, or the like.

It should be borne in mind, however, that all of these and similar termsare to be associated with the appropriate physical quantities and aremerely convenient labels applied to these quantities. The presentdisclosure can refer to the action and processes of a computer system,or similar electronic computing device, that manipulates and transformsdata represented as physical (electronic) quantities within the computersystem's registers and memories into other data similarly represented asphysical quantities within the computer system memories or registers orother such information storage systems.

The present disclosure also relates to an apparatus for performing theoperations herein. This apparatus can be specially constructed for theintended purposes, or it can include a general purpose computerselectively activated or reconfigured by a computer program stored inthe computer. Such a computer program can be stored in a computerreadable storage medium, such as, but not limited to, any type of diskincluding floppy disks, optical disks, CD-ROMs, and magnetic-opticaldisks, read-only memories (ROMs), random access memories (RAMs), EPROMs,EEPROMs, magnetic or optical cards, or any type of media suitable forstoring electronic instructions, each coupled to a computer system bus.

The algorithms and displays presented herein are not inherently relatedto any particular computer or other apparatus. Various general purposesystems can be used with programs in accordance with the teachingsherein, or it can prove convenient to construct a more specializedapparatus to perform the method. The structure for a variety of thesesystems will appear as set forth in the description below. In addition,the present disclosure is not described with reference to any particularprogramming language. It will be appreciated that a variety ofprogramming languages can be used to implement the teachings of thedisclosure as described herein.

The present disclosure can be provided as a computer program product, orsoftware, that can include a machine-readable medium having storedthereon instructions, which can be used to program a computer system (orother electronic devices) to perform a process according to the presentdisclosure. A machine-readable medium includes any mechanism for storinginformation in a form readable by a machine (e.g., a computer). In someembodiments, a machine-readable (e.g., computer-readable) mediumincludes a machine (e.g., a computer) readable storage medium such as aread only memory (“ROM”), random access memory (“RAM”), magnetic diskstorage media, optical storage media, flash memory components, etc.

In the foregoing specification, embodiments of the disclosure have beendescribed with reference to specific example embodiments thereof. Itwill be evident that various modifications can be made thereto withoutdeparting from the broader spirit and scope of embodiments of thedisclosure as set forth in the following claims. The specification anddrawings are, accordingly, to be regarded in an illustrative senserather than a restrictive sense.

What is claimed is:
 1. A system comprising: a memory device; and aprocessing device, operatively coupled with the memory device, toperform operations comprising: identifying a subset of a plurality ofevent entries from a staging buffer based on one or more filteringfactors, wherein the one or more filtering factors are defined based atleast in part on a priority level of the event entries and on an amountof bandwidth available in a communication pipe between the system and ahost system, and wherein the plurality of event entries corresponds toevents associated with the memory device; and sending the subset of theplurality of event entries to the host system over the communicationpipe.
 2. The system of claim 1, wherein the processing device is toperform operations further comprising: determining to send system stateinformation associated with the memory device to the host system,wherein determining to send system state information comprises at leastone of: receiving a request for the system state information from thehost system; or determining an occurrence of a periodic interval uponwhich the system state information is to be sent to the host system. 3.The system of claim 1, wherein identifying the subset of the pluralityof event entries comprises comparing the one or more filtering factorsto one or more metadata tags associated with each of the plurality ofevent entries.
 4. The system of claim 3, wherein the subset of theplurality of event entries comprises event entries for which thecorresponding one or more metadata tags match the one or more filteringfactors.
 5. The system of claim 3, wherein the one or more metadata tagscomprise one or more of an indication of a severity of a correspondingevent entry, a priority level of the corresponding event entry, or anamount of bandwidth required to transmit the corresponding event entryto the host system.
 6. The system of claim 1, wherein sending the subsetof the plurality of event entries to the host system comprises at leastone of: moving the subset of the plurality of event entries from thestaging buffer to an output buffer and transmitting contents of theoutput buffer to the host system; or selecting the subset of theplurality of event entries from the staging buffer and sending theselected subset of the plurality of entries from the staging buffer tothe host system.
 7. The system of claim 1, wherein the communicationpipe at least one of a universal asynchronous receiver-transmitter(UART) bus, an inter-integrated circuit (I2C) bus, a system managementbus (SMBus), a Nexus bus, or a peripheral component interconnect express(PCIe) bus.
 8. The system of claim 1, wherein the processing device isto perform operations further comprising: maintaining a remainder of theplurality of entries not identified in the subset in the staging buffer.9. The system of claim 1, wherein the processing device is to performoperations further comprising: receiving, from the host system, feedbackdata representing an update to the one or more filtering factors; andapplying the feedback data to the one or more filtering factors.
 10. Amethod comprising: identifying a subset of a plurality of event entriesfrom a staging buffer based on one or more filtering factors, whereinthe one or more filtering factors are defined based at least in part ona priority level of the event entries and on an amount of bandwidthavailable in a communication pipe between the system and a host system,and wherein the plurality of event entries corresponds to eventsassociated with the memory device; and sending the subset of theplurality of event entries to the host system over the communicationpipe.
 11. The method of claim 10, wherein the processing device is toperform operations further comprising: determining to send system stateinformation associated with the memory device to the host system,wherein determining to send system state information comprises at leastone of: receiving a request for the system state information from thehost system; or determining an occurrence of a periodic interval uponwhich the system state information is to be sent to the host system. 12.The method of claim 10, wherein identifying the subset of the pluralityof event entries comprises comparing the one or more filtering factorsto one or more metadata tags associated with each of the plurality ofevent entries, wherein the subset of the plurality of event entriescomprises event entries for which the corresponding one or more metadatatags match the one or more filtering factors, wherein a remainder of theplurality of entries not identified in the subset are maintained in thestaging buffer, and wherein the one or more metadata tags comprise oneor more of an indication of a severity of a corresponding event entry, apriority level of the corresponding event entry, or an amount ofbandwidth required to transmit the corresponding event entry to the hostsystem.
 13. The method of claim 10, wherein sending the subset of theplurality of event entries to the host system comprises at least one of:moving the subset of the plurality of event entries from the stagingbuffer to an output buffer and transmitting contents of the outputbuffer to the host system; or selecting the subset of the plurality ofevent entries from the staging buffer and sending the selected subset ofthe plurality of entries from the staging buffer to the host system. 14.The method of claim 10, wherein the processing device is to performoperations further comprising: receiving, from the host system, feedbackdata representing an update to the one or more filtering factors; andapplying the feedback data to the one or more filtering factors.
 15. Anon-transitory computer-readable storage medium comprising instructionsthat, when executed by a processing device, cause the processing deviceto perform operations comprising: identifying a subset of a plurality ofevent entries from a staging buffer based on one or more filteringfactors, wherein the one or more filtering factors are defined based atleast in part on a priority level of the event entries and on an amountof bandwidth available in a communication pipe between the system and ahost system, and wherein the plurality of event entries corresponds toevents associated with a memory device; and send the subset of theplurality of event entries to the host system over the communicationpipe.
 16. The non-transitory computer-readable storage medium of claim15, wherein the instructions cause the processing device to performoperations further comprising: determining to send system stateinformation to the host system, wherein determining to send the systemstate information comprises at least one of: receiving a request for thesystem state information from the host system; or determining anoccurrence of a periodic interval upon which the system stateinformation is to be sent to the host system.
 17. The non-transitorycomputer-readable storage medium of claim 15, wherein identifying thesubset of the plurality of event entries comprises comparing the one ormore filtering factors to one or more metadata tags associated with eachof the plurality of entries, wherein the subset of the plurality ofevent entries comprises event entries for which the corresponding one ormore metadata tags match the one or more filtering factors, and whereina remainder of the plurality of entries not identified in the subset aremaintained in the staging buffer.
 18. The non-transitorycomputer-readable storage medium of claim 17, wherein the one or moremetadata tags comprise one or more of an indication of a severity of acorresponding event entry, a priority level of the corresponding evententry, or an amount of bandwidth required to transmit the correspondingevent entry.
 19. The non-transitory computer-readable storage medium ofclaim 15, wherein sending the subset of the plurality of event entriesto the host system comprises at least one of: moving the subset of theplurality of event entries from the staging buffer to an output bufferand transmitting contents of the output buffer to the host system; orselecting the subset of the plurality of event entries from the stagingbuffer and sending the selected subset of the plurality of entries fromthe staging buffer to the host system.
 20. The non-transitorycomputer-readable storage medium of claim 15, wherein the instructionscause the processing device to performing operations further comprising:receiving, from the host system, feedback data representing an update tothe one or more filtering factors; and applying the feedback data to theone or more filtering factors.